package com.tianruan.psychological.moduls.sys.user.api;

import com.tianruan.psychological.common.utils.JedisUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author liuxin
 * @date 2019/11/9
 */
@RestController
@RequestMapping("/api/sys/test")
public class TestController {

    @GetMapping
    public void test() {

        Map<String, String> map = new HashMap<>();
        map.put("test", "dong");
        map.put("test1", "dong1");
        JedisUtils.setMap("testMap", map);

        JedisUtils.mapRemove("testMap", "test1");


    }
}
